package com.opentae.data.mall.interfaces;

import com.opentae.core.mybatis.config.MyBatisRepository;
import com.opentae.core.mybatis.mapper.Mapper;
import com.opentae.data.mall.beans.UserWxInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

/**
 * 
 * Created by exampleCreater.
 */
@MyBatisRepository("tae_mall_userWxInfoMapper")
@Scope("singleton")
@Lazy(true)
public interface UserWxInfoMapper extends Mapper<UserWxInfo> {
    //根据工作号openiid 查询微信信息
    UserWxInfo selByGzhOpeniid(@Param("openId")String openId);
    //根据 unionId 查询用户信息
    UserWxInfo selByUnionId(@Param("unionId")String unionId);
    //查询小程序openId
    String selXcxOpeniid(@Param("mallUserId")Long mallUserId);
    //查询公众号openid
    String selGzhOpeniid(@Param("mallUserId")Long mallUserId);
    //查询app的openid
    String selAppOpeniid(@Param("mallUserId")Long mallUserId);
}
